/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package utn.tsb.tej.front_end;

import com.trolltech.qt.core.Qt.Alignment;
import com.trolltech.qt.core.Qt.AlignmentFlag;
import com.trolltech.qt.gui.QDialog;
import com.trolltech.qt.gui.QLabel;
import com.trolltech.qt.gui.QVBoxLayout;

/**
 *
 * @author Carlos S. Moreno <CarlosS.Moreno@gmail.com>
 */
public class WaitingWindow extends QDialog {

    String title, text;
    QLabel txtWindowText;

    public WaitingWindow()
    {
        this("This could take a few seconds");
    }

    public WaitingWindow (String text)
    {
        this("Please Wait", text);
    }

    public WaitingWindow (String title, String text)
    {
        this.setWindowTitle(title);
        this.setFixedSize(300, 80);

        QVBoxLayout mainLayout = new QVBoxLayout(this);
        mainLayout.setAlignment(new Alignment(AlignmentFlag.AlignCenter));
        mainLayout.addWidget(new QLabel(text));

    }
}
